home *** CD-ROM | disk | FTP | other *** search
- Path: nnrp.info.ucla.edu!jmartin
- From: jmartin@cs.ucla.edu (Jay Martin)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 16 Mar 1996 01:09:32 GMT
- Organization: University of California, Los Angeles
- Message-ID: <4id4cc$1rau@saba.info.ucla.edu>
- References: <00001a73+00002504@msn.com> <Pine.A32.3.91.960313165249.124278B-100000@red.weeg.uiowa.edu> <4i9ld6$m2v@rational.rational.com> <4iah20$p7k@saba.info.ucla.edu> <4ictel$18v@tpd.dsccc.com>
- NNTP-Posting-Host: may.cs.ucla.edu
- X-Newsreader: NN version 6.5.0.b3.0 #9 (NOV)
-
- kcline@sun132.spd.dsccc.com (Kevin Cline) writes:
-
- >Maybe, but I personally find it much easier to maintain lex & yacc
- >grammers which make the file syntax explicit, instead of trying to
- >divine the syntax from scanf statements scattered throughout a dozen
- >subroutines.
-
- If you have to parse something, fine use lex and yacc. If it is
- simple I prefer to use simple IO statements of the language. Parsing
- is really only needed when there are nested structures in the text.
- As a user, I do not want to read a grammer for a text file format.
- As a programmer annotated grammers do not do much for me either.
-
- >The scanf programmers tend to define their input file syntax to make
- >it easy to parse, rather than easy to read, and then resist all
- >suggestions to extend the syntax for user convenience.
-
- I personally do not find complex text file formats as an exceptable
- user friendly method of input in this day and age. Users should look
- at GUI's not goofy text files. Thus, slight differences in the
- flexiblity of file formats is really of little concern these days as
- no one should be really looking at them. Besides grammer style legacy
- text file formats I see little use for parsing besides writing your
- own C++ or Ada95 or other language compiler ( or pretty printer, etc).
- Something I am not planning to do anytime soon. So has GUI's and huge
- languages really ruined the usefulness of parsing, or am I forgetting
- some important uses of parsers.
-
- Jay
-
-
-
-
-